package com.doge.controller.wx;

import com.doge.bean.base.BaseRespVo;
import com.doge.bean.vo.wxhome.WXIndexVO;
import com.doge.service.wx.home.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: project2-wechat-mall
 * @description:
 * @author: 305905917@qq.com
 * @create: 2021-12-02 10:20
 **/
@RestController
@RequestMapping("wx/home")
public class WxHomeController {

    @Autowired
    WxHomeService wxHomeService;


    /**
     * 返回主页信息
     *
     * @return
     */
    @RequestMapping("index")
    public BaseRespVo index() {
        WXIndexVO wxIndexVO = wxHomeService.index();
        return BaseRespVo.ok(wxIndexVO);
    }

}
